/*
 * Copyright (c) ShaoxiongDu <Shaoxiong.dev@aliyun.com> 2021 all Rights Reserved
 */

package zh.codegym.task.task08.task0821;

import java.util.HashMap;
import java.util.Map;

/* 
共享的姓氏和名字
*/

public class Solution {
    public static void main(String[] args) {
        Map<String, String> map = createPeopleMap();
        printPeopleMap(map);
    }

    public static Map<String, String> createPeopleMap() {
        //在此编写你的代码
        HashMap<String, String> map = new HashMap<>();
        map.put("姓氏1", "名字");
        map.put("姓氏1", "名字");
        map.put("姓氏2", "名字");
        map.put("姓氏3", "名字");
        map.put("姓氏4", "名字");
        map.put("姓氏5", "名字");
        map.put("姓氏6", "名字");
        map.put("姓氏7", "名字");
        map.put("姓氏8", "名字");
        map.put("姓氏9", "名字");

        return map;
    }

    public static void printPeopleMap(Map<String, String> map) {
        for (Map.Entry<String, String> s : map.entrySet()) {
            System.out.println(s.getKey() + " " + s.getValue());
        }
    }
}
